package com.taoist_awei.blog.core;

import org.springframework.stereotype.Component;

import java.util.Optional;

@Component
public interface JwtService {

    Optional<String> getSubFromToken(String token);

    String toToken(UserEntity userEntity);
}
